const {
	Controller
} = require('uni-cloud-router')
const {HomeLogic:{addCompanyDynamicInfo,getHotDynamicSort,pageDynamicByType}} = require('core')
module.exports = class DynamicController extends Controller {
	async test() {
		return await addCompanyDynamicInfo()
	}
	
	async getHotDynamicSort(){
		 return await getHotDynamicSort()
	}
	
	async pageDynamicByType(){
		const {
			service,
			data
		} = this.ctx;
		return await pageDynamicByType(data)
	}
}
